package spec.zhangyuehua.$03.$0303;

/**
 * Created by yue on 2017/9/14.
 */
public class Car {
    String type;
    int weight;
  public   int number;
    char car(char kind){
        return kind;
    }
    public Car(String type, int weight, int number){
        //构造函数的方法里面主要完成成员变量的赋初值
        this.type=type;
        this.weight=weight;
        this.number=number;
    }
    public String getInfo(){
        return "类型:"+type+";载重:"+weight+";车牌号："+number;

    }
}
